# 删除元素底层是：元素拷贝

ls = list(range(10))
del ls[2]  # 参数是元素索引
print("del: ", ls)

x = ls.pop()
# x = ls.pop(1) # 参数是元素索引
# x = ls.pop(2)
print("pop: ", x, ls)

ls.remove(3)  # 参数是元素值
print("remove: ", ls)
